package com.myjob.enums;

/**
 * @author Chen Yuan
 * @create 2021-03-03  11:05
 */
public class RedisEnums {
	/**
	 * 存在 Redis 中数据的 Key
	 * @param:
	 * @return:
	 * @auther: chenyuan
	 */
	public static enum KEY_IN_REDIS{
		READ_NUM("blogReadNumber","博客阅读量"),
		COMPANY_LOGO("companyLogo-", "企业Logo前缀"),
		COMPANY_PHOTO("companyPhoto-", "企业照片前缀"),
		USER_PHOTO("userPhoto-", "用户照片前缀"),
		ADV_PHOTO("advertisementPhoto-", "广告照片前缀"),

		AUTH_RESOURCE_URL_ROLE_IDS_CEL("AUTH:RESOURCE_URL_ROLE_IDS_CEL", "资源和角色关系"),
		AUTH_ROLE_ID_RESOURCE_CODE_CEL("AUTH:ROLE_ID_RESOURCE_CODE_CEL", "资源和角色关系"),

		EMAIL_CODE("EMAIL_CODE:", "邮箱验证码");

		//构造器默认只能是private, 保证构造函数只能在内部使用
		private final String value;
		private final String desc;
		KEY_IN_REDIS(String value,String desc) {
			this.value = value;
			this.desc = desc;
		}
		public String getValue() {
			return value;
		}
	}
}
